package learn.emp02.ex17;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int M = scanner.nextInt();
        double P = scanner.nextDouble();
        int N = scanner.nextInt();

        double compound = M * Math.pow(1 + P, N);
        double nonCompound = M * (1 + P * N);
        double difference = compound - nonCompound;

        System.out.println(Math.round(compound) + " " + Math.round(nonCompound) + " " + Math.round(difference));
    }
}
